package com.hmall.common.api;

import com.hmall.common.pojo.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("userservice")
public interface AddressFeignClient {
    @RequestMapping("/address/{id}")
    Address findAddressById(@PathVariable("id") Long id);

}
